package com.hua.yuan.provider.user;

import android.support.annotation.NonNull;

/**
 * @Author: richsjeson.
 * @Description: TODO() 用户组件对外暴露的用户接口
 * @Date:Created in 2018/12/23 1:44 PM.
 * @Modified By:
 */
public interface IUserProvider {

    IUserProvider setToken(@NonNull String pToken);

    IUserProvider setUserInfo(@NonNull User pUserInfo);

    IUserProvider setMobilePhone(@NonNull String pMobilePhone);

    IUserProvider setPassword(@NonNull String pPassword);

    String getToken();

    User getUser();

    /**
     * 判断是否登录
     * @return
     */
    boolean getIsLogin();

    /**
     *
     * @return 用户注册号
     */
    String getMobilePhone();

    /**
     *
     * @return 密码
     */
    String getPassword();
}
